# 存放元素
import allure
from selenium.webdriver.common.by import By
from base.base_page import Basspage

# DEV宪章
from utils.assert_util import assert_compare


class OwsInquire(Basspage):
    """万能查元素"""
    # 点击万能查搜索框
    ows_all = (By.XPATH, '//*[@id="app"]/div[2]/div[2]/div[2]/div/div/div[1]/div/div/div/div[2]/div[1]/div/div[1]/input')
    # 点击查客户
    ows_client = (By.XPATH, '//*[@id="app"]/div[2]/div[2]/div[2]/div/div/div[1]/div/div/div/div[2]/div[1]/div/div[2]/div[1]/div[1]/button/span')
    # 断言客户ID==57699443
    ows_id = (By.XPATH, '//*[@id="app"]/div[2]/div[2]/div[2]/div/div/div[4]/div[1]/div[2]/table/tbody/tr/td[1]/div/span')

    """我的待办元素"""
    # 点击火线
    ows_firing = (By.XPATH, '//*[@id="app"]/div[2]/div[1]/div[1]/div/ul/li[4]/div')
    # 点击工作台
    ows_workbench = (By.XPATH, '//*[@id="app"]/div[2]/div[1]/div[1]/div/ul/li[4]/ul/li[1]/div/span/span[2]')
    # 点击我的待办
    ows_to_do_tasks = (By.XPATH, '//*[@id="app"]/div[2]/div[1]/div[1]/div/ul/li[4]/ul/li[1]/ul/div[1]/a/span/span[2]')
